﻿using DevExpress.Xpo;
using Model.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.Bill
{
    public class TB_OrderPay : BaseXPObjectClass
    {
        public TB_OrderPay(Session session) : base(session) { }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
        }
        TB_Order fOrderID;
        [Association("Order-OrderPay")]
        public TB_Order OrderID
        {
            get { return fOrderID; }
            set { SetPropertyValue<TB_Order>("OrderID", ref fOrderID, value); }
        }
        int fRowNum;
        public int RowNum
        {
            get { return fRowNum; }
            set { SetPropertyValue<int>("RowNum", ref fRowNum, value); }
        }
        int fStatusID;
        public int StatusID
        {
            get { return fStatusID; }
            set { SetPropertyValue<int>("StatusID", ref fStatusID, value); }
        }
        DateTime fPayDate;
        public DateTime PayDate
        {
            get { return fPayDate; }
            set { SetPropertyValue<DateTime>("PayDate", ref fPayDate, value); }
        }
        decimal fAmount;
        public decimal Amount
        {
            get { return fAmount; }
            set { SetPropertyValue<decimal>("Amount", ref fAmount, value); }
        }
        decimal fAmountCope;
        public decimal AmountCope
        {
            get { return fAmountCope; }
            set { SetPropertyValue<decimal>("AmountCope", ref fAmountCope, value); }
        }
    }
}
